package com.traffic.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.traffic.mapper.FamilyMigrateMapper;
import com.traffic.domain.FamilyMigrate;
import com.traffic.service.IFamilyMigrateService;

/**
 * 亲人移居信息Service业务层处理
 * 
 * @author zzs
 * @date 2024-11-11
 */
@Service
public class FamilyMigrateServiceImpl implements IFamilyMigrateService 
{
    @Autowired
    private FamilyMigrateMapper familyMigrateMapper;

    /**
     * 查询亲人移居信息
     * 
     * @param id 亲人移居信息主键
     * @return 亲人移居信息
     */
    @Override
    public FamilyMigrate selectFamilyMigrateById(String id)
    {
        return familyMigrateMapper.selectFamilyMigrateById(id);
    }

    /**
     * 查询亲人移居信息列表
     * 
     * @param familyMigrate 亲人移居信息
     * @return 亲人移居信息
     */
    @Override
    public List<FamilyMigrate> selectFamilyMigrateList(FamilyMigrate familyMigrate)
    {
        return familyMigrateMapper.selectFamilyMigrateList(familyMigrate);
    }

    /**
     * 新增亲人移居信息
     * 
     * @param familyMigrate 亲人移居信息
     * @return 结果
     */
    @Override
    public int insertFamilyMigrate(FamilyMigrate familyMigrate)
    {
        return familyMigrateMapper.insertFamilyMigrate(familyMigrate);
    }

    /**
     * 修改亲人移居信息
     * 
     * @param familyMigrate 亲人移居信息
     * @return 结果
     */
    @Override
    public int updateFamilyMigrate(FamilyMigrate familyMigrate)
    {
        return familyMigrateMapper.updateFamilyMigrate(familyMigrate);
    }

    /**
     * 批量删除亲人移居信息
     * 
     * @param ids 需要删除的亲人移居信息主键
     * @return 结果
     */
    @Override
    public int deleteFamilyMigrateByIds(String[] ids)
    {
        return familyMigrateMapper.deleteFamilyMigrateByIds(ids);
    }

    /**
     * 删除亲人移居信息信息
     * 
     * @param id 亲人移居信息主键
     * @return 结果
     */
    @Override
    public int deleteFamilyMigrateById(String id)
    {
        return familyMigrateMapper.deleteFamilyMigrateById(id);
    }
}
